package myPack1;

import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;

import org.junit.Test;
import org.openqa.selenium.By;

public class TC02 extends LCB{

	@Test
	public void atTest1() throws Exception{
		
		driver.get("http://www.gmail.com");
		
		System.out.println(driver.getTitle());
		
		Properties prop = new Properties();
		
		String filePath = "D:\\Selenium\\Sel_Projects\\JAN_25\\data.properties";
		
		File file = new File(filePath);
		
		FileInputStream fIP = new FileInputStream(file);
		
		prop.load(fIP);
		
		String vUser = prop.getProperty("userName");
		String vPasswd = prop.getProperty("password");
		
		driver.findElement(By.id("Email")).sendKeys(vUser);
		driver.findElement(By.id("Passwd")).sendKeys(vPasswd);
		driver.findElement(By.id("signIn")).click();
		
	}
	
}
